<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "cache_list".
 *
 * @property string $id
 * @property integer $cache_type
 * @property string $cache_name
 * @property string $cache_value
 * @property string $create_time
 * @property integer $operate_type
 * @property string $operate_time
 */
class CacheList extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'cache_list';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['cache_type', 'cache_name', 'cache_value', 'create_time'], 'required'],
            [['cache_type', 'operate_type'], 'integer'],
            [['create_time', 'operate_time'], 'safe'],
            [['cache_name', 'cache_value'], 'string', 'max' => 100],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'cache_type' => 'Cache Type',
            'cache_name' => 'Cache Name',
            'cache_value' => 'Cache Value',
            'create_time' => 'Create Time',
            'operate_type' => 'Operate Type',
            'operate_time' => 'Operate Time',
        ];
    }
}
